Optimal. Leaf size=58 \[ \frac {3 \sin (c+d x)}{16 d (5-3 \cos (c+d x))}+\frac {5 \tan ^{-1}\left (\frac {\sin (c+d x)}{3-\cos (c+d x)}\right )}{32 d}+\frac {5 x}{64} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 58, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2664, 12, 2657} \[ \frac {3 \sin (c+d x)}{16 d (5-3 \cos (c+d x))}+\frac {5 \tan ^{-1}\left (\frac {\sin (c+d x)}{3-\cos (c+d x)}\right )}{32 d}+\frac {5 x}{64} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2657
Rule 2664
Rubi steps
\begin {align*} \int \frac {1}{(5-3 \cos (c+d x))^2} \, dx &=\frac {3 \sin (c+d x)}{16 d (5-3 \cos (c+d x))}-\frac {1}{16} \int -\frac {5}{5-3 \cos (c+d x)} \, dx\\ &=\frac {3 \sin (c+d x)}{16 d (5-3 \cos (c+d x))}+\frac {5}{16} \int \frac {1}{5-3 \cos (c+d x)} \, dx\\ &=\frac {5 x}{64}+\frac {5 \tan ^{-1}\left (\frac {\sin (c+d x)}{3-\cos (c+d x)}\right )}{32 d}+\frac {3 \sin (c+d x)}{16 d (5-3 \cos (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 43, normalized size = 0.74 \[ \frac {5 \tan ^{-1}\left (2 \tan \left (\frac {1}{2} (c+d x)\right )\right )-\frac {6 \sin (c+d x)}{3 \cos (c+d x)-5}}{32 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.56, size = 59, normalized size = 1.02 \[ -\frac {5 \, {\left (3 \, \cos \left (d x + c\right ) - 5\right )} \arctan \left (\frac {5 \, \cos \left (d x + c\right ) - 3}{4 \, \sin \left (d x + c\right )}\right ) + 12 \, \sin \left (d x + c\right )}{64 \, {\left (3 \, d \cos \left (d x + c\right ) - 5 \, d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.43, size = 61, normalized size = 1.05 \[ \frac {5 \, d x + 5 \, c + \frac {12 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{4 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1} - 10 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) - 3}\right )}{64 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 48, normalized size = 0.83 \[ \frac {3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{64 d \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )+\frac {1}{4}\right )}+\frac {5 \arctan \left (2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{32 d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.38, size = 69, normalized size = 1.19 \[ \frac {\frac {6 \, \sin \left (d x + c\right )}{{\left (\frac {4 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + 1\right )} {\left (\cos \left (d x + c\right ) + 1\right )}} + 5 \, \arctan \left (\frac {2 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{32 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.31, size = 67, normalized size = 1.16 \[ \frac {5\,\mathrm {atan}\left (2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{32\,d}-\frac {5\,\left (\mathrm {atan}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )-\frac {d\,x}{2}\right )}{32\,d}+\frac {3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{64\,d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+\frac {1}{4}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.37, size = 192, normalized size = 3.31 \[ \begin {cases} \frac {x}{\left (5 - 3 \cosh {\left (2 \operatorname {atanh}{\left (\frac {1}{2} \right )} \right )}\right )^{2}} & \text {for}\: c = - d x - 2 i \operatorname {atanh}{\left (\frac {1}{2} \right )} \vee c = - d x + 2 i \operatorname {atanh}{\left (\frac {1}{2} \right )} \\\frac {x}{\left (5 - 3 \cos {\relax (c )}\right )^{2}} & \text {for}\: d = 0 \\\frac {20 \left (\operatorname {atan}{\left (2 \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )} \right )} + \pi \left \lfloor {\frac {\frac {c}{2} + \frac {d x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right ) \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{128 d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 32 d} + \frac {5 \left (\operatorname {atan}{\left (2 \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )} \right )} + \pi \left \lfloor {\frac {\frac {c}{2} + \frac {d x}{2} - \frac {\pi }{2}}{\pi }}\right \rfloor \right )}{128 d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 32 d} + \frac {6 \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{128 d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 32 d} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________